import { _decorator, Prefab, Node, Sprite } from 'cc';
import PlantBase from './PlantBase';

const { ccclass, property } = _decorator;

@ccclass('Chomper')
export class Chomper extends PlantBase {
  @property(Node)
  bulletPrefab: Prefab = null;

  @property(Node)
  firePoint: Node = null;

  protected onInit() {
    console.log('食人花初始化完成');
  }


  protected onLoad(): void {
      this.init('chomper',this.getComponent(Sprite))
  }
}
